#include("../template/_layout.html")
#@layout()

#define content()
<div class="container" style="margin-top: 30px;">
#if(saved=="true")
<div class="container alert alert-success" style="margin-top: 10px;" role="alert">已保存</div>
#end
<form action="/config/save" method="post">
	<div class="form-group">
	    <label>线程数量</label>
	    <input type="text" name="threadAmount" value="#(threadAmount)" class="form-control">
	</div>
    <div class="form-group">
        <label>数据库写入缓存大小</label>
        <input type="text" name="cacheSize" value="#(cacheSize)" class="form-control">
        <p class="help-block">重启后生效</p>
    </div>
	<div class="checkbox">
		<label>
		    <input type="checkbox" name="useProxy" value="true" #if(useProxy== "true")checked#end > 启用代理
		</label>
	</div>
	<div class="form-group">
		<label>代理地址</label>
		<input type="text" name="proxyHost" value="#(proxyHost)" class="form-control">
	</div>
	<div class="form-group">
		<label>代理端口</label>
		<input type="text" name="proxyPort" value="#(proxyPort)" class="form-control">
	</div>
	<button type="submit" class="btn btn-default">保存</button>
</form>
</div>
#end